import {createStore} from 'redux'
import rootReducer from './reducer-index.js'

export default function configureState(initState) {
  const store = createStore(
    rootReducer,
    initState,
    window.devToolsExtension? window.devToolsExtension(): undefined
  )
  return store
}